#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <map>
std::map<void *, size_t> memPool;
#ifdef _DEBUG
void *operator new[](size_t size)
{
	void *p = malloc(size);
	std::cout << __FUNCTION__ << std::endl;
	std::cout << "size=" << size << std::endl; 
	return p; 
}
void operator delete( void *p)
{
	free(p);
	std::cout << __FUNCTION__ <<std::endl;
}
#endif
int main(int argc, char **argv)
{
	int *buf = new int[10];
	delete[] buf;
	return 0;
}
